package com.neil.dynamic.gateway.definition;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 *  路由模型对象
 * @ProjectName:
 * @Package:        com.neil.dynamic.gateway.definition
 * @ClassName:      GatewayRouteDefinition
 * @Description:    路由模型对象
 * @Author:         Neil.Zhou
 * @CreateDate:     2019/10/14 16:23
 * @UpdateUser:     Neil.Zhou
 * @UpdateDate:     2019/10/14 16:23
 * @UpdateRemark:   The modified content
 * @Version:        1.0
 * <p>Copyright: Copyright (c) 2019/10/14</p>
 *
 */
@Data
public class GatewayRouteDefinition {
    /*** 路由的Id ***/
    private String id;
    /*** 路由断言集合配置 ***/
    private List<GatewayPredicateDefinition> predicates = new ArrayList<>();
    /*** 路由过滤器集合配置 ***/
    private List<GatewayFilterDefinition> filters = new ArrayList<>();
    /*** 路由规则转发的目标uri ***/
    private String uri;
    /*** 路由执行的顺序 ***/
    private int order = 0;
}
